<?php

$dbhost = 'localhost';
$dbuser = 'learn2b_ltb';
$dbpass = 'ltbhandk';
$dbname = 'learn2b_ltb';

$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
mysql_select_db($dbname);

$file = "UniversityList.txt";
$fh = fopen($file, 'r') or die("Can't open file");


while(!feof($file))
{
  echo fgets($file). "<br />";
}
fclose($fh);



?>


